package net.borlis.sample.web.context;

import net.borlis.configuration.common.ApplicationConfiguration;
import net.borlis.sample.services.facade.api.IDataProducer;
import net.borlis.errors.exceptions.TranslatedException;

/**
 * @author alex@borlis.net
 */
public interface WeldWebContext {

    IDataProducer getDataProducer();

    void verifyClientKey(String clientKey, String locale) /* throws TranslatedException */;

    TranslatedException generateException(String locale, String code);

    TranslatedException generateException(String locale, String code, Exception e);

    ApplicationConfiguration getConfiguration();

    Boolean isInit();

}
